<template>
  <div class="hello">
    当前值为：<el-tag type="danger">{{$store.state.count}}</el-tag>
    <el-button @click="postactions">-1</el-button>
    {{eventOll}}
  </div>
</template>

<script>
import {mapMutations,mapActions,mapGetters} from 'vuex'
export default {
  methods:{
     ...mapMutations(['dnmutations']),
     ...mapActions(['postactions']),
     
  },
 computed:{
    ...mapGetters(['eventOll'])
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
